﻿<Window x:Class="DataTransferBetweenViews.View.BaseView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:v="clr-namespace:DataTransferBetweenViews.View"
        xmlns:vm="clr-namespace:DataTransferBetweenViews.ViewModel"
        Title="BaseView" Height="300" Width="300">
    <Window.Resources>
        <DataTemplate DataType="{x:Type vm:SenderViewModel}">
            <v:SenderView/>
        </DataTemplate>
        
        <DataTemplate DataType="{x:Type vm:ReceiverViewModel}">
            <v:ReceiverView/>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <GroupBox Grid.Row="0" Content="{Binding Path=SenderViewModel}" Header="Sender"></GroupBox>
        <GroupBox Grid.Row="1" Content="{Binding Path=ReceiverViewModel}" Header="Receiver"></GroupBox>
    </Grid>
</Window>
